Ext.define('App.main.view.North', {
    extend: 'Ext.panel.Panel',
    alias: ['widget.North'],
    items: [{
        xtype: "button",
        text: '注销',
        handler: function () {
            Ext.Ajax.request({
                url: 'logout', success: function () {
                    window.app.showLoginWindow();
                }
            });
        }
    }]
    , listeners: {
        onLoginSuccess: function (view) {
            view.close();
        }
    }
})